package com.ruoyi.cs.mapper;

import java.util.List;

import com.ruoyi.cs.domain.TWarReceive;
import org.apache.ibatis.annotations.Param;

/**
 * 战令领取Mapper接口
 * 
 * @author ruoyi
 * @date 2023-12-11
 */
public interface TWarReceiveMapper 
{
    /**
     * 查询战令领取
     * 
     * @param id 战令领取主键
     * @return 战令领取
     */
    public TWarReceive selectTWarReceiveById(Long id);

    /**
     * 查询战令领取列表
     * 
     * @param tWarReceive 战令领取
     * @return 战令领取集合
     */
    public List<TWarReceive> selectTWarReceiveList(TWarReceive tWarReceive);

    /**
     * 新增战令领取
     * 
     * @param tWarReceive 战令领取
     * @return 结果
     */
    public int insertTWarReceive(TWarReceive tWarReceive);

    /**
     * 修改战令领取
     * 
     * @param tWarReceive 战令领取
     * @return 结果
     */
    public int updateTWarReceive(TWarReceive tWarReceive);

    /**
     * 删除战令领取
     * 
     * @param id 战令领取主键
     * @return 结果
     */
    public int deleteTWarReceiveById(Long id);

    /**
     * 批量删除战令领取
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTWarReceiveByIds(Long[] ids);

    /**
     * @Desc: 批量插入
     * @author: zz
     * @date: 2023/12/13
     */
    public int batchInsertWarReceive(List<TWarReceive> list);

    /**
     * @Desc: 用户获取战令箱子
     * @author: zz
     * @date: 2023/12/13
     */
    public TWarReceive getTWarBox(@Param("userId") String userId, @Param("boxId") String boxId);

    /**
     * @Desc: 统计战令箱子
     * @author: zz
     * @date: 2024/1/30
     */
    public Long tWarBoxNum(@Param("userId") String userId, @Param("boxId") String boxId);
}
